<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    body>div{
      width: 200px;
      border: 1px solid red;
        overflow: hidden;/*解决高度识别为0的问题*/
    }
    #d1{
      width: 50px;height: 50px;
        background-color: red;
        float: left;
    }
    #d2{
      width: 50px;height: 50px;
        background-color: green;
        float: left;
    }
    #d3{
      width: 50px;height: 50px;
        background-color: blue;
        float: left;
    }
    ul{
        list-style-type: none;/*去掉图标*/
    }
    li{
        float: left;
        margin-right: 20px;
    }
  </style>
</head>
<body>
<div>
<div id="d1"></div>
<div id="d2"></div>
<div id="d3"></div>
</div>
<ul>
    <li>首页</li>
    <li>免费</li>
    <li>直播</li>
    <li>精品</li>
    <li>线上</li>
</ul>
</body>
</html>